"use strict";
cc._RF.push(module, 'd26beQKGFdLe6OUbEZGPaKA', 'main');
// javascirpt/main.js

"use strict";

// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
  "extends": cc.Component,
  properties: {
    city: "",
    hotSprite: cc.Sprite,
    myAtlas: cc.SpriteAtlas,
    myAlert: cc.Prefab
  },
  onload: function onload() {
    console.log("加载方法");
  },
  start: function start() {
    console.log("this.hotSprite");
  },
  test: function test(traget, data) {
    console.log("点！" + traget + ":" + data);
    console.log(this.hotSprite);
    this.hotSprite.spriteFrame = this.myAtlas.getSpriteFrame("224");
  },
  update: function update(dt) {// dt是距离上次刷新的时间 
    // console.log("帧"+dt)
  }
});

cc._RF.pop();